package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 预约企业剪服务表
 * </p>
 *
 * @author Atlakyn
 * @since 2021-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("d_business_cut")
public class BusinessCut extends Model<BusinessCut> {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("提交人id")
    private Integer userId;

    @ApiModelProperty("状态 0未回访 1已回访")
    private Boolean status;

    @ApiModelProperty("企业名称")
    private String name;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("联系人")
    private String contact;

    @ApiModelProperty("联系电话")
    private String telephone;

    @ApiModelProperty("预约时间")
    private Date time;

    @ApiModelProperty("其他需求")
    private String other;

    @ApiModelProperty("添加时间")
    private Date createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
